package com.yanqu.road.entity.enums;

/**
 * 相对于玩家的城市状态
 */
public enum eChuHanCityStatus {

    Type1_MyCampPeace(1, "我方无战斗"),
    Type2_MyCampBattle(2, "我方战斗中"),
    Type3_EnemyCampPeace(3, "敌方无战斗"),
    Type4_EnemyCampBattle(4, "敌方战斗中"),
    Type5_NotCampPeace(5, "系统阵营无战斗"),
    Type6_NotCampBattle(6, "系统阵营战斗中"),
    ;

    private static final Integer[][] cityWeight = new Integer[][]{
            {1000, 1000, 1000, 1000, 1000, 1000},
            {2901 ,2902 ,2905 ,2906 ,2903 ,2904},
            {3901 ,3902 ,3905 ,3906 ,3903 ,3904},
            {3911 ,3912 ,3915 ,3916 ,3913 ,3914},
            {1101 ,1102 ,1105 ,1106 ,1103 ,1104},
            {1201 ,1202 ,1205 ,1206 ,1203 ,1204}
     };

    private int value;
    private String name;

    eChuHanCityStatus(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public static int getMoveWeight(eChuHanCityStatus from, eChuHanCityStatus to) {
        return cityWeight[from.getValue() - 1][to.getValue() - 1];
    }
}
